To give a penalty means to impose a punishment or consequence upon someone for breaking a rule or doing something wrong.